import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/HelloWorld'
Vue.use(Router)

export default new Router({
  // base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      component: Home,
      children:[
        {
          path: '/',
          name:'所有管理',
          redirect: '/memorialManage'
        },
        {
            path: '/memorialManage',
            name:'纪念馆管理',
            component: resolve => require(['@/components/page/memorialManage.vue'], resolve)
        },
        {
          path: '/sacrificeStatistics',
          name:'财务统计管理',
          component: resolve => require(['@/components/page/sacrificeStatistics.vue'], resolve)
        }, 
        {
          path: '/promoteManage',
          name:'推广管理',
          component: resolve => require(['@/components/page/promoteManage.vue'], resolve)
        },
        {
          path: '/laborManage',
          name:'祭祀管理',
          component: resolve => require(['@/components/page/laborManage.vue'], resolve)
        },
        {
          path: '/amountsManage',
          name:'礼金管理',
          component: resolve => require(['@/components/page/amountsManage.vue'], resolve)
        }, 
        {
          path: '/pageManage',
          name:'权限管理',
          component: resolve => require(['@/components/page/pageManage.vue'], resolve)
        }, 
        {
          path: '/helpCenter',
          name:'帮助中心',
          component: resolve => require(['@/components/page/helpCenter.vue'], resolve)
        }, 
        {
          path: '/pageList',
          name:'分网',
          component: resolve => require(['@/components/page/pageList.vue'], resolve)
        }, 
        {
          path: '/helpList',
          name:'帮助详情',
          component: resolve => require(['@/components/page/helpList.vue'], resolve)
        },                    
      ]
    }
  ]
})
